cmake_minimum_required(VERSION 3.10.2)

include_directories(include)
#编译源文件
file(GLOB source_files *.cpp *.c)
add_library(IDCardScan SHARED ${source_files})


#add_library(lib_opencv SHARED IMPORTED)
#set_target_properties(lib_opencv PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libopencv_java3.so)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/../jniLibs/${CMAKE_ANDROID_ARCH_ABI}")

target_link_libraries( # Specifies the target library.
        IDCardScan
        log
        jnigraphics
        opencv_java3)